<template>
  <div>
    {{ msg }}
    <child />
  </div>
</template>

<script>
import eventBus from "./events";
import Child from "./Child";
export default {
  data() {
    return {
      msg: 0,
    };
  },
  components: {
    Child,
  },
  created() {
    eventBus.$on("getValue", (data) => {
      this.msg = data;
    });
  },
};
</script>
